<?php

class PriceForm extends Block{
	
	public $templatePath = __DIR__ ;
	public $templateFile = "PriceForm.tpl.std.html";
	public $caption = "Price";
	public $description="Price";
	public $currencyLabel="Dollar";
	public $centLabel="Cent";
	public $symbol="$";
	public $currency;
	public $cent;
	public $price;
	
	public function show(){
		$this->parseFromFile($this->templatePath."/".$this->templateFile);
		
		$this->currency = isset($_REQUEST[$this->oid]['currency'])?$_REQUEST[$this->oid]['currency']:"";
		$this->cent  = isset($_REQUEST[$this->oid]['cent'])?$_REQUEST[$this->oid]['cent']:"";
		
		return $this->replace();
	}
}

?>